class TextGenerator:
	qresult = None

	def generate():
		pass

	def __init__(self, qresult):
		self.qresult = qresult

		
class TGLexDocType(TextGenerator):
	def generate(self):
		for doc in self.qresult:
			yield '%s %s %s\n' %(doc.id, doc.name, doc.priority)
